package com.cslc.wechat.bind.service;

import java.util.Set;

import com.cslc.wechat.common.bean.Clerk;
import com.cslc.wechat.common.bean.Terminal;

public interface BindService {
	public void saveOrUpdateClerk(Clerk clerk);
	public Clerk getClerkFromWeChatService(String openid);
	/**
	 * 绑定销售员、终端
	 * @param openid
	 * @param terminalNo
	 * @param tel
	 * @return
	 */
	public String bindClerkAndTerminal(String openid, String terminalNo, String tel);
	
	/**
	 * 将绑定信息删除
	 * @param openid
	 */
	public void unBindClerkAndTerminal(String openid);
	
	/**
	 * 通过openid获取绑定的终端信息
	 * @param openid
	 * @return
	 */
	public Set<Terminal> getClerkBindTerminals(String openid);
}
